package com.ht.pms.core.dao.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.ht.pms.core.dto.send.PushMsgReq;
import com.ht.pms.core.dto.send.NoticeDingdingRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NoticeDingdingRecordMapper extends BaseMapper<NoticeDingdingRecord> {
    List<PushMsgReq> findSendNoticeData(@Param("batchCode") String batchCode, @Param("sendType") int sendType, @Param("jobCodes")  List<String> jobCodes ,@Param("state") int state,@Param("sendServer")int sendServer);

    String findSendTime(@Param("batchCode") String batchCode);

    void updateDingDingState(@Param("batchCode") String batchCode, @Param("jobCode") String jobCode,@Param("state")  int state,@Param("sendType") int sendType);

    void updateState(@Param("batchCode") String batchCode, @Param("jobCodes") List<String> jobCodes,@Param("state")  int state,@Param("sendType") int sendType,@Param("sendServer") int sendServer);

    void updateRecordState(@Param("batchCode") String batchCode,@Param("jobCodes")  List<String> jobCodes, @Param("state")int state,@Param("sendServer") int sendServer);

}